package com.atguigu.myrule;

import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：pkq
 * @date ：Created in 2022/1/5 11:01
 * @description：
 * @modified By：
 * @version: $
 */
@Configuration
public class MySelfRule {

    @Bean
    public RandomRule MyRandomRule(){
        //定义为随机
        return new RandomRule();
    }

}
